import request from '@/utils/request'
export default {
    getDictsByPid(pid){
        return request({
            url:`/admin/core/dict/getDictsByPid/${pid}`,
            method:'GET'
        })
    },
    getById(id){
        return request({
            url:`/admin/core/dict/getById/${id}`,
            method:'GET'
        })
    },
    update(dict){
        return request({
            url:`/admin/core/dict/update`,
            method:'PUT',
            data:dict
        })
    },    
    deleteById(id){
        return request({
            url:`/admin/core/dict/deleteById/${id}`,
            method:'DELETE'
        })
    }
}